import request from '@/utils/request'

// 查询优质商户列表
export function listYzsh(query) {
  return request({
    url: '/buss/yzsh/list',
    method: 'get',
    params: query
  })
}

// 查询优质商户详细
export function getYzsh(deptid) {
  return request({
    url: '/buss/yzsh/' + deptid,
    method: 'get'
  })
}

// 新增优质商户
export function addYzsh(data) {
  return request({
    url: '/buss/yzsh',
    method: 'post',
    data: data
  })
}

// 修改优质商户
export function updateYzsh(data) {
  return request({
    url: '/buss/yzsh',
    method: 'put',
    data: data
  })
}

// 删除优质商户
export function delYzsh(deptid) {
  return request({
    url: '/buss/yzsh/' + deptid,
    method: 'delete'
  })
}
